Closed duonglaiquang closed 8 months ago
HTMLScanner
<plaintext>
document.write
This shows the case where the infinity loop can happen
Source
<!DOCTYPE html> <html> <head> <script> document.write("<plaintext>foo") </script> <title>Test</title> </head> <body> bar </body> </html>
Expected DOM tree output
<!DOCTYPE html> <html> <head> <script> document.write("<plaintext>foo") </script> </head> <body> <plaintext> foo <title>Test</title> </head> <body> bar </body> </html> </plaintext> </body> </html>
Thanks (as always) - made a new neko snapshot available - 4.0.0-SNAPSHOT
This PR does the following
HTMLScanner
will run into an infinity loop while parsing<plaintext>
tag insidedocument.write
Reproducing
This shows the case where the infinity loop can happen
Source
Expected DOM tree output