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

RESOLVED FIXED

Status

()

Core
HTML: Parser
RESOLVED FIXED
14 years ago
14 years ago

People

(Reporter: annevk, Assigned: mrbkap)

Tracking

({testcase})

Trunk
testcase
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(1 attachment)

(Reporter)

Description

14 years ago
If we do this we would emulate IEs behavior and we would probably be more
compliant with the SGML specification.
(Assignee)

Comment 1

14 years ago
Created attachment 177706 [details] [diff] [review]
patch v1

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
(Assignee)

Comment 2

14 years ago
Oops, hit submit too soon. I forgot to mention that IE does not require the
closing > for <style>.
(Assignee)

Updated

14 years ago
Attachment #177706 - Flags: review?(bzbarsky)
Attachment #177706 - Flags: review?(bzbarsky) → review+
(Assignee)

Updated

14 years ago
Attachment #177706 - Flags: superreview?(jst)
Comment on attachment 177706 [details] [diff] [review]
patch v1

sr=jst
Attachment #177706 - Flags: superreview?(jst) → superreview+
(Assignee)

Comment 4

14 years ago
Fix checked in.
Status: ASSIGNED → RESOLVED
Last Resolved: 14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.