diff options
author | Leonard Richardson <leonardr@segfault.org> | 2018-08-12 10:58:24 -0400 |
---|---|---|
committer | Leonard Richardson <leonardr@segfault.org> | 2018-08-12 10:58:24 -0400 |
commit | c4cb9ff2a794e7606e240e4da73dcc837ec175df (patch) | |
tree | 5e8e495519f1c96d2b595294a9b8a6101261b691 /bs4 | |
parent | 6ef9b0c70abf4237ed07cb8314a7ef5b67d35869 (diff) | |
download | beautifulsoup4-c4cb9ff2a794e7606e240e4da73dcc837ec175df.tar.gz |
Converted README to Markdown format.
Diffstat (limited to 'bs4')
-rw-r--r-- | bs4/builder/__init__.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bs4/builder/__init__.py b/bs4/builder/__init__.py index 21454e6..c9e3f3d 100644 --- a/bs4/builder/__init__.py +++ b/bs4/builder/__init__.py @@ -239,6 +239,12 @@ class HTMLTreeBuilder(TreeBuilder): # These are from earlier versions of HTML and are removed in HTML5. 'basefont', 'bgsound', 'command', 'frame', 'image', 'isindex', 'nextid', 'spacer' ]) + + # The HTML standard defines these as block-level elements. Beautiful + # Soup does not treat these elements differently from other elements, + # but it may do so eventually, and this information is available if + # you need to use it. + block_elements = set(["address", "article", "aside", "blockquote", "canvas", "dd", "div", "dl", "dt", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hr", "li", "main", "nav", "noscript", "ol", "output", "p", "pre", "section", "table", "tfoot", "ul", "video"]) # The HTML standard defines these attributes as containing a # space-separated list of values, not a single value. That is, |