| <!-- |
| @BLINK-ALLOW:hierarchicalLevel* |
| @WAIT-FOR:done |
| --> |
| <html> |
| <style type="text/css"> |
| .inlineList li { |
| display: inline; |
| } |
| </style> |
| <body> |
| <ul class="inlineList"> |
| <li>item</li> |
| </ul>$ |
| </body> |
| <script> |
| function convertDollarToWhitespace(node) { |
| let child = node.firstChild; |
| while (child) { |
| if (child.nodeType == Node.ELEMENT_NODE) |
| convertDollarToWhitespace(child); |
| else if (child.nodeType == Node.TEXT_NODE && child.data.indexOf('$') >= 0) |
| child.data = ' \n '; |
| child = child.nextSibling; |
| } |
| } |
| setTimeout(() => { |
| convertDollarToWhitespace(document.body); |
| document.title = 'done'; |
| }, 500); |
| </script> |
| </html> |