Closed Bug 323229 Opened 19 years ago Closed 15 years ago

</head> strips spaces following it

Categories

(Core :: DOM: HTML Parser, defect, P4)

x86
Linux
defect

Tracking

()

RESOLVED FIXED
Future

People

(Reporter: ian, Unassigned)

References

()

Details

(Whiteboard: [fixed by the HTML5 parser])

Attachments

(2 files)

The following: <pre>Hello</head> World</pre> ...renders with no spaces. In other browsers the spaces render. TESTCASE: http://www.hixie.ch/tests/adhoc/html/parsing/019.html SPECIFICATION: I haven't quite worked out the spec yet... Note that in "</head> <body>" all browsers _do_ strip the spaces.
Easy to fix, but only 'cause I like you, Ian ;-).
Status: NEW → ASSIGNED
Priority: -- → P4
Whiteboard: [patch]
Target Milestone: --- → mozilla1.9alpha
Given the document: |<html><head><style>body { white-space: pre }</style></head> foo| you'll find us stripping whitespace, but I hope that's compatible (and that browsers don't find an implicit <body> in those spaces).
Attachment #208309 - Flags: superreview?(jst)
Attachment #208309 - Flags: review?(jst)
Attached patch Alterna-patchSplinter Review
dbaron suggested this. I have no real feelings one way or the other...
Attachment #208313 - Flags: superreview?(jst)
Attachment #208313 - Flags: review?(jst)
Comment on attachment 208309 [details] [diff] [review] Only strip ws before the body or frameset Clearing review requests pending a decision.
Attachment #208309 - Flags: superreview?(jst)
Attachment #208309 - Flags: review?(jst)
Attachment #208313 - Flags: superreview?(jst)
Attachment #208313 - Flags: review?(jst)
When there's been a concensus, I'll look at this again.
Target Milestone: mozilla1.9alpha → Future
So what does the second patch actually do? As things stand, someone would have to review both patches to be able to say anything intelligent about them.
It doesn't strip spaces following any tokens at all. I'm really waiting on the spec to finish changing (since that's whawt Hixie told me to do when he filed this).
Ah, ok.
Assignee: mrbkap → nobody
Hey, the HTML5 parser fixed a bug filed Hixie. :-)
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Whiteboard: [patch] → [fixed by the HTML5 parser]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: