aboutsummaryrefslogtreecommitdiff
path: root/src/html.cc
AgeCommit message (Collapse)Author
2013-09-20Refactoring: some useful shortcuts in DilloHtml.Sebastian Geerken
2013-09-11Fix a corner case with attribute parsing and null-bytes in HTML contentJorge Arellano Cid
e.g. details in gbof-read-0_Html_get_attr2.html.asan
2013-09-10html5, complain about assorted obsolete attributescorvid
2013-09-10Some refactoring: the image decoding code now only accesses ↵Sebastian Geerken
dw::core::ImgRenderer, not dw::Image (which now implements the former) anymore.
2013-09-07the WBR element itselfcorvid
2013-09-07Textblock::addBreakOption() forceBreak argument to support WBR elementSebastian Geerken
2013-09-06html5, complain about obsolete elementscorvid
2013-09-06Merge with main repo.Sebastian Geerken
2013-09-06fix bug_msgcorvid
2013-09-06doctype more detailed bug msgscorvid
2013-09-05html5 MARK elementcorvid
2013-09-05INS elementcorvid
2013-09-05don't require STYLE type attribute for html5corvid
2013-09-05don't warn about html5 in bug msgscorvid
2013-09-05html5, id/name values are less restrictedcorvid
2013-09-05html5, don't restrict A to inline ('phrasing') content.corvid
Its content model is 'transparent', meaning that it's supposed to use the content model of its parent.
2013-09-05some html5 structural elementscorvid
The spec also has some rules about how, for instance, a footer can't go inside a header, and that sort of thing, but that can wait until we have something more sophisticated than a collection of IN_* flags.
2013-08-28Merge with main repo.Sebastian Geerken
2013-08-26Fix handling of the HEAD elementJorge Arellano Cid
Avoids overflow of Num_HEAD variable, its potential problems and improves HTML bug messages. The handling algorithm changed to not only care gracefully for some tag soup cases, but also for malicious HTML.
2013-08-26Fix handling of the BODY elementJorge Arellano Cid
Avoids overflow of Num_BODY variable, its potential problems and improves HTML bug messages. e.g. details in crash-null_preprocessAttrs.html.asan. The num-head, num-title, num-body, num-html patch series is a bundle for the same type of problem/solution.
2013-08-25Fix handling of the HTML elementJorge Arellano Cid
Avoids overflow of Num_HTML variable, its potential problems and improves HTML bug messages.
2013-08-24Fix some problems with TITLE element handlingJorge Arellano Cid
Avoids overflow of Num_TITLE variable and improves HTML bug messages.
2013-08-12Merge with main repo.Sebastian Geerken
2013-08-07Make the parser handle TEXTAREA contents in verbatim modeJorge Arellano Cid
It also served to avoid bugs due to nested content in textarea, but this is handled separately now by the parser (see nested_inputs patch) allowing the parsing mode to be changed without side effects. BTW, this patch mimics Firefox's behaviour.
2013-08-07Add nested inputs cleanup and handling.Jorge Arellano Cid
This patch avoids a family of problems that arise from handling nested inputs. from invalid memory access up to crashes. e.g. details in bof-read-47_attachView.html.asan. This patch is much wider than the above referred instance.
2013-07-30Merge with main repo.Sebastian Geerken
2013-07-25Fix a bug in the DOCTYPE parser that could go out of bounds on corner casesJorge Arellano Cid
Problem details in bof-read-0_Html_parse_doctype.html.asan. Added a strlen check that makes the code work safely for malformed HTML. (the problem lied in an assumption of well formedness)
2013-07-25Fix a bug with injected HTML that could lead to reads out of bounds.Jorge Arellano Cid
Problem details are in getCurTagLineNumber.html.asan file. This solution adds a flag to avoid potential HTML bug messages generation for injected HTML. The problem is that injected HTML lies in a separate buffer so the line number counter gets lost. BTW, there's no point in the bug message because the user never sees the browser-injected HTML sources. In this particular case there was a bug in the original html file that went unreported. This patch also fixes this.
2013-04-22Merge with main repo.Sebastian Geerken
2013-04-20implement OPTGROUP in src/corvid
I wrote nearly all of this last year, and I've just been going back over it now. As I recall, I initially also tried: select holds optgroups and options, and optgroups hold options (instead of this flat array of options, optgroups, and close-optgroups), but the code wasn't coming out any cleaner, so...
2013-01-13Update with main repo.Sebastian Geerken
2013-01-07remove weird comment linesJohannes Hofmann
These lines were a left-over from a previous merge. noticed-by: corvid <corvid@lavabit.com>
2013-01-02Merge with main repo.Sebastian Geerken
2012-12-30rm prehistoric 'subtag' wordingcorvid
2012-12-17Merge with main repo.Sebastian Geerken
2012-12-15finish option as soon as we see the close tagcorvid
I was just looking at distrowatch, and noticed that a menu looked odd. It turns out that their code goes like Amarok Live<option value="amaroklive">Amarok Live</option> Amber<option value="amber">Amber</option> Ankur Bangla<option value="ankur">Ankur Bangla</option> Annvix<option value="annvix">Annvix</option> AnNyung<option value="annyung">AnNyung</option> Anonym.OS<option value="anonymos">Anonym.OS</option> for some crazy reason. This led to dillo showing labels like "AnNyung Anonym.OS".
2012-12-07Merge with <http://hg.dillo.org/dillo>.Sebastian Geerken
2012-12-03iframe content functioncorvid
2012-11-28Merge with http://hg.dillo.org/dillo/.Sebastian Geerken
2012-11-27Merge.Sebastian Geerken
2012-11-26rm unused arg to TagCloseFunctcorvid
2012-11-25anothercorvid
2012-11-17Merge.Sebastian Geerken
2012-11-14Cleaned up preferences.Sebastian Geerken
2012-11-13Merge.Sebastian Geerken
2012-11-10rm MSG blank linescorvid
2012-11-08Making hyphen penalties configurable.Sebastian Geerken
2012-11-08Merge with main repo.Sebastian Geerken
2012-11-07Shorten too wide lines in html.ccJorge Arellano Cid
2012-11-07apos character entity for xhtmlcorvid