• Nigel Tao's avatar
    html: handle end tags in foreign objects. · a369004e
    Nigel Tao authored
    I'm not 100% sure I get all the corner cases right, for end tags, but
    I'll let the test suite smoke it out.
    
    Pass tests10.dat, test 1:
    <!DOCTYPE html><svg></svg><![CDATA[a]]>
    
    | <!DOCTYPE html>
    | <html>
    |   <head>
    |   <body>
    |     <svg svg>
    |     <!-- [CDATA[a]] -->
    
    Also pass tests through test 5:
    <!DOCTYPE html><body><table><svg></svg></table>
    
    R=andybalholm
    CC=golang-dev
    https://golang.org/cl/5495044
    a369004e
const.go 2.26 KB