Closed
Bug 1141401
Opened 10 years ago
Closed 9 years ago
Robustness improvements for JSDOMParser
Categories
(Toolkit :: Reader Mode, defect)
Toolkit
Reader Mode
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: fabrice, Unassigned)
Details
I'd like it to be able to parse pages like http://www.nytimes.com/2014/12/09/science/a-one-way-trip-to-mars-many-would-sign-up.html
Comment 1•9 years ago
|
||
What's currently not working about JSDOMParser? The page in question renders in reader mode fine - it misses paragraphs, but that's likely readability's fault, not jsdomparser. As it is, this report is incomplete because it lacks the information required to take action on it.
For some background: JSDOMParser requires an XML-compatible DOM string. There is no real reason to relax that requirement (we make sure the thing it gets from firefox is xml-compatible even if the original document wasn't by using an xml-based serializer). For a more robust parser, maybe see jsdom ( https://github.com/tmpvar/jsdom/ ).
Flags: needinfo?(fabrice)
Reporter | ||
Comment 2•9 years ago
|
||
When I filed this bug I was feeding it the raw http response, because I didn't want to go through a parse-then-reserialize-then-reparse chain. I'm not working on that anymore, so feel free to ignore.
Flags: needinfo?(fabrice)
Comment 3•9 years ago
|
||
Thanks, going to resolve WFM then.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•