• Andrew Balholm's avatar
    html: stop at scope marker node when generating implied </a> tags · 22ee5ae2
    Andrew Balholm authored
    A <a> tag generates implied end tags for any open <a> elements.
    But it shouldn't do that when it is inside a table cell the the open <a>
    is outside the table.
    So stop the search for an open <a> when we reach a scope marker node.
    
    Pass tests1.dat, test 78:
    <a href="blah">aba<table><tr><td><a href="foo">br</td></tr>x</table>aoe
    
    | <html>
    |   <head>
    |   <body>
    |     <a>
    |       href="blah"
    |       "abax"
    |       <table>
    |         <tbody>
    |           <tr>
    |             <td>
    |               <a>
    |                 href="foo"
    |                 "br"
    |       "aoe"
    
    Also pass test 79:
    <table><a href="blah">aba<tr><td><a href="foo">br</td></tr>x</table>aoe
    
    R=nigeltao
    CC=golang-dev
    https://golang.org/cl/5320063
    22ee5ae2
Name
Last commit
Last update
..
cmd Loading commit data...
lib9 Loading commit data...
libbio Loading commit data...
libmach Loading commit data...
pkg Loading commit data...
Make.ccmd Loading commit data...
Make.clib Loading commit data...
Make.cmd Loading commit data...
Make.common Loading commit data...
Make.inc Loading commit data...
Make.pkg Loading commit data...
all-qemu.bash Loading commit data...
all.bash Loading commit data...
clean.bash Loading commit data...
env.bash Loading commit data...
make.bash Loading commit data...
quietgcc.bash Loading commit data...
run.bash Loading commit data...
sudo.bash Loading commit data...
version.bash Loading commit data...