1
1
mirror of https://github.com/Kozea/WeasyPrint.git synced 2024-10-05 00:21:15 +03:00
WeasyPrint/weasyprint
Tontyna 3d4f18b916 Add html element to Box class
Unless the Box is a PageBox or a MarginBox the new attribute `element` points
to the html element (xml.etree.ElementTree.Element) where the Box stems from.
This enables e.g. post-processing that depends on Element attributes, like
'class' or 'id'.

Caution: Elements with no subelements will test as False! Test the element's
existence with `if box.element is not None:`.

Related to #434, #970.
2019-10-17 23:41:36 +02:00
..
css Remove the Running class 2019-09-27 11:34:36 +02:00
formatting_structure Add html element to Box class 2019-10-17 23:41:36 +02:00
layout Remove RunningPlaceholder 2019-09-27 11:53:30 +02:00
tests [ADD] position: running(); content: element(); 2019-09-22 23:21:31 +02:00
tools [ADD] position: running(); content: element(); 2019-09-22 23:21:31 +02:00
__init__.py Remove and fix some TODOs 2019-07-11 16:48:53 +02:00
__main__.py Add CLI argument printing system information 2019-09-13 10:01:45 +02:00
document.py Merge branch 'master' into perf 2019-07-24 10:54:20 +02:00
draw.py Handle the ::marker pseudo-element 2019-08-07 23:01:41 +02:00
fonts.py Remove and fix some TODOs 2019-07-11 16:48:53 +02:00
html.py Add html element to Box class 2019-10-17 23:41:36 +02:00
images.py Move percentage function into percentages module 2019-06-02 18:06:25 +02:00
logger.py Update copyright 2019-03-04 11:04:06 +01:00
pdf.py Update copyright 2019-03-04 11:04:06 +01:00
stacking.py Update copyright 2019-03-04 11:04:06 +01:00
text.py Don't crash when using ex units in word-spacing in letter-spacing 2019-09-10 14:52:46 +02:00
urls.py Update default_url_fetcher's documentation 2019-04-12 16:34:19 +02:00
VERSION Version 50 2019-09-19 13:34:22 +02:00