aboutsummaryrefslogtreecommitdiff
path: root/src/html.cc
AgeCommit message (Collapse)Author
2014-04-02comment detailcorvid
2014-04-02fix crash and use proper requester URL for CSS imagesJohannes Hofmann
2014-04-01resolve CSS background-image URLs relative to styleheet URLJohannes Hofmann
2014-03-16Separate 'Accept:' value for stylesheetscorvid
2014-02-25extend http-equiv parsing to handle redirects without url=Johannes Hofmann
On some site (m.bahn.de) the meta element looked like this: <meta http-equiv="Refresh" content="0;http://www.bahn.de/m/;fitScript=0/"> To handle the missing 'url=' in the content attribute we extend the parsing to skip beyond the ';' in case there is no 'url=' reported-by: Andreas Kemnade
2014-02-15make embed/source/object work with display:nonecorvid
2014-02-15TODOcorvid
2014-02-15input image shouldn't recognize hspace,vspace,border attrscorvid
2014-02-15rudimentary support for html5 video,audio,source,embedcorvid
2014-02-02trim some spacescorvid
2013-11-29Use img_rndr instead of img_rnd to avoid associating "rnd" suffex with random.Jorge Arellano Cid
2013-10-14Merge with main repo.Sebastian Geerken
2013-10-07View(port) background now set by HTML parser.Sebastian Geerken
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-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-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-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-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-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-07remove weird comment linesJohannes Hofmann
These lines were a left-over from a previous merge. noticed-by: corvid <corvid@lavabit.com>
2012-12-30rm prehistoric 'subtag' wordingcorvid
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-03iframe content functioncorvid
2012-11-27Merge.Sebastian Geerken
2012-11-26rm unused arg to TagCloseFunctcorvid
2012-11-25anothercorvid
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-07Shorten too wide lines in html.ccJorge Arellano Cid