Skip to content
This repository has been archived by the owner on Dec 11, 2020. It is now read-only.

Switch presentational b and i elements for semantic strong and em #1522

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dmnc
Copy link

@dmnc dmnc commented Jul 9, 2018

Currently the body HTML generated by randomHtml contains elements that some validators object to.

This is slightly complicated again by HTML5 introducing new meaning for the b and i elements but switching still looks sensible.

Merging #1421 too would make this even more useful.

@ppelgrims
Copy link
Contributor

Which validators?

I am a bit confused: if semantically they mean different things, why wouldn't we just introduce strong and em? Add them separately?

@pimjansen
Copy link
Contributor

Agree, for example is a style definition and that is not what the HTML spec is about. That is the main reason why there is a type which indicates on how it should be understood.

I am a bit worried though what this will break for existing implementations

@pimjansen
Copy link
Contributor

We are not going to implement this for 1.9 but i do agree that we should have this done for 2.0.
Problem is that it is a breaking change for a lot of implementations

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants