aboutsummaryrefslogtreecommitdiff
path: root/src/html_common.hh
AgeCommit message (Collapse)Author
2025-02-19Fix build on Solaris 10 and old gcc 4.0.1Claes Nästén
Remove extra semicolons and commas, as well as isinf() so it builds and runs on Solaris 10. Also add extra fixes for non C++11 courtesy of Sevan Janiyan, making Dillo compile and run on OS X 10.4 PowerPC with GCC 4.0.1 and 8.5. Co-authored-by: Sevan Janiyan <venture37@geeklan.co.uk>
2024-10-05Define CssLength as struct instead of intRodrigo Arias Mallo
The int type doesn't have a fixed size, and is only guarantee to hold 16 bits. The current implementation assumes a size of at least 32 bits, an uses three bits to encode the type of information stored in the rest. To add more types of lengths we would need to take more bits from the value itself. A simpler approach is just to use a enumeration to take care of the type of length and a union to encapsulate the different lengths values.
2024-03-09Use Doxygen comments for C filesRodrigo Arias Mallo
2016-05-27Don't allow nesting of the A element (fixes slashdot.org).Jorge Arellano Cid
A lingering open A element can lead to invisible content. e.g. http://slashdot.org/ Note: slashdot_a_bug.html testcase in my HD.
2016-05-11Fixed handling of BODY and HTML tags. Also improved their html-bug messages.Jorge Arellano Cid
BODY and HTML have optional open and close, making them tricky to handle. Even more when considering Tag soup pages with multiple body or html sections, and corner cases. This patch tackles the problems by leaving the first HTML and BODY stack elements open, until EOF. There's also better html-bug detection and messages, and more accurate comments in the code. Beware: it may look simple, but it's not!
2014-05-07page bugs: fix line numbers for bugs in entitiescorvid
2014-04-01resolve CSS background-image URLs relative to styleheet URLJohannes Hofmann
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-09-20Added BrowserWindow and DilloURL (base URL) to StyleEngine::apply and related.Sebastian Geerken
2013-09-20Refactoring: some useful shortcuts in DilloHtml.Sebastian Geerken
2013-09-06doctype more detailed bug msgscorvid
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-25Fix handling of the HTML elementJorge Arellano Cid
Avoids overflow of Num_HTML variable, its potential problems and improves HTML bug messages.
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-12clean up struct typedefsp37sitdu, corvid
2012-12-30rm prehistoric 'subtag' wordingcorvid
2012-02-02remove unused codeJohannes Hofmann
spotted-by: corvid
2012-01-30rework image handling codeJohannes Hofmann
Properly separate common image handling functions in CSS relevant attribute parsing (a_Html_image_attrs) and image creation (a_Html_image_new()). This should also bring the code back a bit to what we had before 8214199c2703.
2012-01-21add support for the CSS display: propertyJohannes Hofmann
2010-11-15Moved the table border model flag from style to DilloHtmlState (i.e. stack)Jorge Arellano Cid
2010-10-24imported patch border-collapseJorge Arellano Cid
2010-10-11rework nonCssHints API of StyleEngineJohannes Hofmann
* Instead of passing the nonCssHints as a CssPropertyList, set the hints separately and create the list in StyleEngine. * The CssPropertyList holding the nonCssHints is now completely managed by StyleEngine and kept on the stack. * Replace the table_cell_props mechanic in html.cc/table.cc with a new method inheritNonCssHints() in StyleEngine.
2009-11-16DilloLinkImage -> DilloHtmlImagecorvid
2009-10-29move link signal emitter/receiver from Widget to Layoutcorvid
http://lists.auriga.wearlab.de/pipermail/dillo-dev/2009-October/006936.html
2009-10-26let later space override previous spacecorvid
The earlier space is less likely to be styled with the intended appearance.
2009-10-24don't appear to need WordAfterLI anymorecorvid
2009-05-22rm current_bg_colorcorvid
2009-05-21DilloHtml Buf_Consumed unneededcorvid
2009-05-09[mq]: replace-DW2TB-with-HT2TBJeremy Henty
2009-04-18Implemented Instant client-side redirects (META refresh with delay=0)Jorge Arellano Cid
http://www.w3.org/TR/2008/NOTE-WCAG20-TECHS-20081211/H76.html
2009-04-08support CSS @import directiveJohannes Hofmann
2009-03-19load <style></style> content only if applicableJohannes Hofmann
2009-03-12remove no longer used HTML_SET_TOP_ATTR macroJohannes Hofmann
2009-03-10replace visited_color dillorc optionJohannes Hofmann
to change the color of visited links add a line :visited {color: red} to your ~/.dillo/style.css file instead.
2009-02-09whitespace cleanup: 's/ +$//g'Jorge Arellano Cid
2009-02-08API cleanup: a_Html_add_new_image() loses the boolean parameter.Jeremy Henty
This patch cleans things up by renaming a_Html_add_new_image() to a_Html_image_new(), removing the boolean parameter and making the caller add the image (or not) as appropriate.
2009-02-06fix check for name/id mismatch (noticed by corvid)Johannes Hofmann
2009-02-03Fix a race condition with charset, and the case of charset after CSS in HEADJorge Arellano Cid
Race condition example: www.blisty.cz charset after CSS ex. : http://www.daemonnews.org
2009-02-03Minor cleanupsJorge Arellano Cid
2009-01-22Fix for d29cdb5b842e (charset decoding given in HTTP and META).Jorge Arellano Cid
2009-01-03remove a_Html_set_top_font() which is no longer usedJohannes Hofmann
2009-01-01imported patch dicache-cleanup5Jorge Arellano Cid
2008-12-21Patch for CSS stylesheet loading part#2Jorge Arellano Cid
2008-12-20merge with mainJohannes Hofmann
2008-12-19Cleaned up Html_pop_tag()Jorge Arellano Cid
2008-12-19Interim patch for CSS stylesheet loading. Not finished yet.Jorge Arellano Cid
2008-12-14convert Html_tag_open_img()Johannes Hofmann