[Webkit-unassigned] [Bug 8374] Creation of HTML with webkit causes extraneous output - should better utilize css over inline style

bugzilla-daemon at opendarwin.org bugzilla-daemon at opendarwin.org
Fri Apr 14 13:51:25 PDT 2006


http://bugzilla.opendarwin.org/show_bug.cgi?id=8374





------- Comment #5 from justin.garcia at apple.com  2006-04-14 13:51 PDT -------
> > > this code is OK but not XHTML.
> > 
> > You're right, it's because the <br> isn't self closing, correct?  Let's file a
> > separate bug report for that. 
> > 
> 
> will you or i?

Filed 8393.


> > You're right that an inline style on the br would be less verbose here, but
> > imagine that there were several items inside the span, like:
> > 
> > <span class="Apple-style-span" style="font-weight: bold;">These are my favorite
> > sites: <a href="..">drudge report</a> <a href="..">hamster dance</a>.</span>
> > 
> > Now the wrapper span is preferable.  It's probably not worth the effort to
> > optimize the output for the case you gave.
> > 
> 
> the css style 'font-weight: bold;' has no impact on the br tag. (if i remember
> correctly). 

You're right for font-weight: bold, but wrong for other properties, like
font-size.  Again, we could optimize this case, but finding out which
properties are unnecessary will 1) slow down serialization (copy) 2) risk
introducing bugs.


-- 
Configure bugmail: http://bugzilla.opendarwin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list