[jira] [Updated] (SLING-3270) html-generator to support html5

2018-11-29 Thread Jason E Bailey (JIRA)


 [ 
https://issues.apache.org/jira/browse/SLING-3270?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jason E Bailey updated SLING-3270:
--
Fix Version/s: Commons HTML 1.0.4

> html-generator to support html5
> ---
>
> Key: SLING-3270
> URL: https://issues.apache.org/jira/browse/SLING-3270
> Project: Sling
>  Issue Type: Improvement
>  Components: Extensions
>Affects Versions: Rewriter 1.0.2
>Reporter: Jason E Bailey
>Assignee: Jason E Bailey
>Priority: Major
> Fix For: Commons HTML 1.0.4
>
> Attachments: 218.patch
>
>
> Given the following fragment of HTML
> 
> This is invalid html4 and valid html5, as html5 allows anchor tags to contain 
> block elements.
> The current html-generator corrects the bad html4 and produces the following 
> output
> 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (SLING-3270) html-generator to support html5

2017-04-25 Thread Jason E Bailey (JIRA)

 [ 
https://issues.apache.org/jira/browse/SLING-3270?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jason E Bailey updated SLING-3270:
--
Attachment: 218.patch

To fully support HTML5 you would need to do something like the referenced 
Univeristy of Warwick repo. I'm reluctant to do that without fully 
understanding all of the potential changes involved. Additionally, while 
reviewing the tagsoup codebase it does look like there's room to improve the 
overall efficiency of this library. Both cases would assume pulling in this 
parser into Sling for maintenance. I've attached what I consider the smallest 
change possible which will support the HTML5 version of the 'a' tag. This is 
generated from the github pr.

> html-generator to support html5
> ---
>
> Key: SLING-3270
> URL: https://issues.apache.org/jira/browse/SLING-3270
> Project: Sling
>  Issue Type: Improvement
>  Components: Extensions
>Affects Versions: Rewriter 1.0.2
>Reporter: Jason E Bailey
> Attachments: 218.patch
>
>
> Given the following fragment of HTML
> 
> This is invalid html4 and valid html5, as html5 allows anchor tags to contain 
> block elements.
> The current html-generator corrects the bad html4 and produces the following 
> output
> 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)