Age | Commit message (Collapse) | Author |
|
The display_none flag is only set _after_ the open tag has run, so it
will only affect child elements. If the current form input element has a
display:none itself, it should be also considered. The new function
a_Html_should_display() evaluates both conditions.
|
|
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>
|
|
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.
|
|
|
|
A lingering open A element can lead to invisible content.
e.g. http://slashdot.org/
Note: slashdot_a_bug.html testcase in my HD.
|
|
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!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.
|
|
Avoids overflow of Num_HTML variable, its potential problems
and improves HTML bug messages.
|
|
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.
|
|
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...
|
|
|
|
|
|
spotted-by: corvid
|
|
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.
|
|
|
|
|
|
|
|
* 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.
|
|
|
|
http://lists.auriga.wearlab.de/pipermail/dillo-dev/2009-October/006936.html
|
|
The earlier space is less likely to be styled with the intended appearance.
|
|
|
|
|
|
|
|
|
|
http://www.w3.org/TR/2008/NOTE-WCAG20-TECHS-20081211/H76.html
|
|
|
|
|
|
|
|
to change the color of visited links add a line
:visited {color: red}
to your ~/.dillo/style.css file instead.
|
|
|
|
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.
|
|
|
|
Race condition example: www.blisty.cz
charset after CSS ex. : http://www.daemonnews.org
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|