Wed, 31 Dec 2014 07:16:47 +0100
Revert simplistic fix pending revisit of Mozilla integration attempt.
michael@0 | 1 | <!DOCTYPE HTML> |
michael@0 | 2 | <html> |
michael@0 | 3 | <head> |
michael@0 | 4 | <!-- Test that removing a <br> can create frames for text around it --> |
michael@0 | 5 | <style> |
michael@0 | 6 | body > div { border:1px solid black; margin:1em; |
michael@0 | 7 | font-family:sans-serif; letter-spacing:2px; } |
michael@0 | 8 | </style> |
michael@0 | 9 | <script> |
michael@0 | 10 | function remove(id) { |
michael@0 | 11 | var e = document.getElementById(id); |
michael@0 | 12 | e.parentNode.removeChild(e); |
michael@0 | 13 | } |
michael@0 | 14 | function loaded() { |
michael@0 | 15 | document.body.offsetHeight; |
michael@0 | 16 | remove("b1"); |
michael@0 | 17 | remove("b2"); |
michael@0 | 18 | remove("b3"); |
michael@0 | 19 | remove("b4"); |
michael@0 | 20 | } |
michael@0 | 21 | </script> |
michael@0 | 22 | </head> |
michael@0 | 23 | <body onload="loaded()"> |
michael@0 | 24 | <div><span>Hello</span><br id="b1"> <span>Kitty</span></div> |
michael@0 | 25 | <div><span>Hello</span> <br id="b2"><span>Kitty</span></div> |
michael@0 | 26 | <!-- we'll create frames here, but they won't make a difference to the rendering --> |
michael@0 | 27 | <div><br id="b3"> <span>Hello</span> <span>Kitty</span></div> |
michael@0 | 28 | <div><span>Hello</span> <span>Kitty</span> <br id="b4"></div> |
michael@0 | 29 | </body> |
michael@0 | 30 | </html> |