[wp-trac] [WordPress Trac] #27931: HTML Editor Removes Schema (Span) Tags

WordPress Trac noreply at wordpress.org
Sun Apr 20 06:35:11 UTC 2014


#27931: HTML Editor Removes Schema (Span) Tags
--------------------------------------+-----------------------------
 Reporter:  slightlyconcernedcitizen  |      Owner:
     Type:  defect (bug)              |     Status:  new
 Priority:  normal                    |  Milestone:  Awaiting Review
Component:  TinyMCE                   |    Version:  3.9
 Severity:  normal                    |   Keywords:
  Focuses:                            |
--------------------------------------+-----------------------------
 I have been trying to add span tags to my blog posts. However whenever I
 switch to the Visual editor it removes all of the tags.

 These are not empty span tags, as they are adhering to the
 [https://schema.org/docs/gs.html schema format].

 Examples tags might be something like this:
 {{{
 <span itemscope itemtype="http://schema.org/Thing"
 sameAs="http://en.wikipedia.org/wiki/Google">Google</span> has <span
 itemprop="ratingCount">25</span> user ratings
 }}}

 If I add that HTML and then switch to the Visual Editor and then switch
 back to the HTML editor, that gets changed to
 {{{
 Google has 25 user ratings
 }}}

 The span tag, despite having information is getting completely removed.
 Schema tags are widely in use now, and Google has gone on record saying
 they make use of them. I have read past tickets where you say that you
 remove span tags that are empty, but these span tags are clearly not empty
 as they have itemprop,itemscope,itemtype,sameAs and many other attributes.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27931>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list