<NOBR> is not approved by the W3C.
----------------------------------

                 Key: OFBIZ-335
                 URL: http://issues.apache.org/jira/browse/OFBIZ-335
             Project: OFBiz (The Open for Business Project)
          Issue Type: Improvement
            Reporter: Jacques Le Roux
         Assigned To: Jacques Le Roux
            Priority: Minor


We claim to be approved by W3C. By chance when using Tidy (actually HTML 
validator plugin in Firefox) I found this

The following tag is not a standard HTML tag. For most tags, the reason is that 
there is other ways to achieve the same result with standard tags or with 
cascaded style sheet.
Solution:

Replace the tag with the equivalent in standard HTML.
Sample:

<NOBR> is not approved by the W3C.

<NOBR> turns off wordwrapping between the start and end NOBR tag,

There are several ways to replace a NOBR by standard tag :
- You can use the nowrap attribute of the TR and TD tag in a table. In that 
case, the <BR> element to force line breaks where desired.

- The best solution is to use a cascaded style sheet with the attribute: 
"white-space: nowrap;".

BAD   <nobr>there is no wrapping here</nobr>
GOOD  <table><tr><td nowrap>there is no wrapping here</td></tr></table>
GOOD  <span style="white-space: nowrap;">there is no wrapping here</span>

References:

http://www.w3.org/TR/CSS1#white-space

I found 38 matches. If I find some time, or if someone has...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to