vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   The BR tag (https://vborg.vbsupport.ru/showthread.php?t=116520)

hambil 05-25-2006 11:11 AM

Quote:

Originally Posted by Zachery
< start tag
br start tag type
spacing
/> end tag, if there is no space its not valid as the tag is recognized as br/ not br

<br/> and any other tag with no space before the / passes validation just fine, and displays just fine in every browser I've ever tried. Try it on http://validator.w3.org/. The space is not needed.

tgreer 05-25-2006 12:03 PM

Just to throw fuel on the fire: Google Adsense (the web's biggest evil) uses "document.write()", which is deprecated in XHTML. So all you folks using Adsense are causing your pages to be invalid XHTML.

firstrebel 05-25-2006 01:34 PM

The /> is not a must, at the moment, as all things must be backward compatible. But as time goes on the standards will change so it is a good idea, and good housekeeping, to start using the /> now.

One error I have noticed on some of the major car manufacturers sites is not closing the <li> tag after each use. That is a basic requirement. At the moment it is not a problem as most browsers can deal with it, but the time will come when the page appearance will be affected.

Bob

tgreer 05-25-2006 01:38 PM

The standard HAS changed. If you're using the XHTML Transitional docytpe, which vBulletin does, then the standard is "<br />".

hambil 05-25-2006 03:20 PM

I still don't see the point. The space is just annoying.

tgreer 05-25-2006 03:31 PM

The point is it's part of the standard. I'm not saying I like it either; but that's how it's done in xhtm, since it's based much more closely on XML, and XML requires that every tag be closed. If a tag has no ending tag, it must close "itself", and that's done by space-slash-closed angle bracket.

hambil 05-25-2006 06:17 PM

I understand. I have no issue with the slash-closed angle bracket. It's the pointless space before it I'm not happy with.

It's like those people who code with all those extra spaces that aren't necessary and just annoy me. e.g.

if ( $a == $b ) {
my_function ( a, b );
}

Ewwwww!

Zachery 05-25-2006 06:21 PM

Quote:

Originally Posted by hambil
I understand. I have no issue with the slash-closed angle bracket. It's the pointless space before it I'm not happy with.

It's like those people who code with all those extra spaces that aren't necessary and just annoy me. e.g.

if ( $a == $b ) {
my_function ( a, b );
}

Ewwwww!

Its there for clean presentation and validation markup, there should be a space between any attributes and next attribute.

hambil 05-25-2006 08:31 PM

If you say so.

Zachery 05-25-2006 09:15 PM

I do.

<img src=""/> will confuses most parsers as src=""/ would be treated as one element of the tag.


All times are GMT. The time now is 10:52 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01073 seconds
  • Memory Usage 1,730KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete