[Bug 10456] New: Should not emit ]] or ] when ]]EOF or ]EOF appears in the CDATA section state

http://www.w3.org/Bugs/Public/show_bug.cgi?id=10456

           Summary: Should not emit ]] or ] when ]]EOF or ]EOF appears in
                    the CDATA section state
           Product: HTML WG
           Version: unspecified
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: critical
          Priority: P1
         Component: HTML5 spec (editor: Ian Hickson)
        AssignedTo: ian@hixie.ch
        ReportedBy: hsivonen@iki.fi
         QAContact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html@w3.org


I'm unhappy to see these tests results:
Failure.
Data:
<svg><![CDATA[]]
Expected:
| <html>
|   <head>
|   <body>
|     <svg svg>
|       "]]"
Got: 
| <html>
|   <head>
|   <body>
|     <svg svg>
Expected errors:
Actual errors:
5: Start tag seen without seeing a doctype first. Expected “<!DOCTYPE html>”.
16: End of file in a foreign namespace context.
Failure.
Data:
<svg><![CDATA[]
Expected:
| <html>
|   <head>
|   <body>
|     <svg svg>
|       "]"
Got: 
| <html>
|   <head>
|   <body>
|     <svg svg>
Expected errors:
Actual errors:
5: Start tag seen without seeing a doctype first. Expected “<!DOCTYPE html>”.
15: End of file in a foreign namespace context.

The tests are correct per spec, but I think the V.nu behavior should be made
correct, because so far we've adhered to the principle that a premature EOF
shouldn't cause tokens to be emitted if those tokens wouldn't be emitted if the
file had been seen to completion.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Thursday, 26 August 2010 13:44:51 UTC