• Andrew Balholm's avatar
    html: adjust bookmark in "adoption agency" algorithm · 604e10c3
    Andrew Balholm authored
    In the adoption agency algorithm, the formatting element is sometimes
    removed from the list of active formatting elements and reinserted at a later index.
    In that case, the bookmark showing where it is to be reinserted needs to be moved,
    so that its position relative to its neighbors remains the same
    (and also so that it doesn't become out of bounds).
    
    Pass tests1.dat, test 70:
    <DIV> abc <B> def <I> ghi <P> jkl </B>
    
    | <html>
    |   <head>
    |   <body>
    |     <div>
    |       " abc "
    |       <b>
    |         " def "
    |         <i>
    |           " ghi "
    |       <i>
    |         <p>
    |           <b>
    |             " jkl "
    
    Also pass tests through test 76:
    <test attribute---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------->
    
    R=nigeltao
    CC=golang-dev
    https://golang.org/cl/5322052
    604e10c3
Name
Last commit
Last update
..
testdata/webkit Loading commit data...
Makefile Loading commit data...
const.go Loading commit data...
doc.go Loading commit data...
entity.go Loading commit data...
entity_test.go Loading commit data...
escape.go Loading commit data...
node.go Loading commit data...
parse.go Loading commit data...
parse_test.go Loading commit data...
render.go Loading commit data...
render_test.go Loading commit data...
token.go Loading commit data...
token_test.go Loading commit data...