Please sign in to comment.
Fix for parsing broken processing instructions.
Some HTML contains broken processing instructions, such as this one encountered in the wild: `<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com
🏢office" />`. The parser crashes on this since it only accepts `?>` (or end-of-file) as the end of a processing instruction. This patch fixes it by also allowing `>` or `/>` to end a processing instruction.
- Loading branch information...