Closed Bug 286381 Opened 19 years ago Closed 19 years ago

parse |<style>foo{bar:baz}</style| as CSS, not as content

Categories

(Core :: DOM: HTML Parser, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: annevk, Assigned: mrbkap)

References

()

Details

(Keywords: testcase)

Attachments

(1 file)

If we do this we would emulate IEs behavior and we would probably be more
compliant with the SGML specification.
Attached patch patch v1Splinter Review
Note that IE's behavior is a bit more complex. IE will only execute <script> if
there is a closing </script> (with optional whitespace before the >). If it
finds |</script|, then it will consume up to the </script, but it won't execute
it. Since we can't follow this behavior exactly, I just refuse to recognize the
</script.
Assignee: parser → mrbkap
Status: NEW → ASSIGNED
Oops, hit submit too soon. I forgot to mention that IE does not require the
closing > for <style>.
Attachment #177706 - Flags: review?(bzbarsky)
Attachment #177706 - Flags: review?(bzbarsky) → review+
Attachment #177706 - Flags: superreview?(jst)
Comment on attachment 177706 [details] [diff] [review]
patch v1

sr=jst
Attachment #177706 - Flags: superreview?(jst) → superreview+
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: