From fdc8d4b020b5ce2cdde12c2c31cc692e0a1084c5 Mon Sep 17 00:00:00 2001 From: Anne van Kesteren Date: Fri, 23 Feb 2018 11:30:29 +0100 Subject: [PATCH 1/5] Add heading-focused outlines and :heading This makes a number of fairly big changes: * Introduces a heading and heading level concept. * Replaces the outline algorithm with a document headings concept. * Requires document headings to not skip heading levels and start with heading level 1. * Introduces a :heading pseudo-class selector. * Introduces a :heading(level) functional pseudo-class selector. * Does away with the section concept (except insofar it's needed to influence the heading level of h1/hgroup). * Does away with sectioning roots. Tests: ... Fixes #83. --- source | 928 ++++++++++----------------------------------------------- 1 file changed, 153 insertions(+), 775 deletions(-) diff --git a/source b/source index 5f6f05ad1cf..611f5e18e6a 100644 --- a/source +++ b/source @@ -2367,15 +2367,13 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
Data mining tools
-

Applications and tools that process HTML and XML documents for reasons other than to either render the documents or check them for conformance should act in accordance with the semantics of the documents that they process.

-

A tool that generates document outlines but - increases the nesting level for each paragraph and does not increase the nesting level for each - section would not be conforming.

- +

A tool that generates document outlines but increases the nesting level for + each paragraph and does not increase the nesting level for headings would not be conforming.

@@ -3871,6 +3869,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute spec=CSSVALUES>