https://bugzilla.wikimedia.org/show_bug.cgi?id=48772
--- Comment #5 from C. Scott Ananian <[email protected]> --- [Discussed this on IRC with subbu] To support case 3 from comment 1 and 2, rather than *strip* the attributes, I suggest encapsulating them instead. For example, if the user authors: <div about="http://dbpedia.org/resource/Albert_Einstein" typeof="foaf:Person"> <span property="foaf:name">Albert Einstein</span> <span property="foaf:givenName">Albert</span> </div> ..instead of stripping the RDFa, we're just going to rename the attributes, to: <div data-user-about="http://dbpedia.org/resource/Albert_Einstein" data-user-typeof="foaf:Person"> <span data-user-property="foaf:name">Albert Einstein</span> <span data-user-property="foaf:givenName">Albert</span> </div> That ensures that the user content is safe for Parsoid and VE to manipulate. In the future we can re-enable the RDFa in the output with a DOM post-processing ("render") pass. For example, the user content: <div about="http://dbpedia.org/resource/Albert_Einstein" typeof="foaf:Person"> {{Albert Einstein}} </div> might have all sorts of Parsoid RDFa markup inside the {{Albert Einstein}} expansion, which the about="http://dbpedia.org/resource/Albert_Einstein" attribute would screw up the context for. But for rendering to the web, the Parsoid cruft could be elided and the user's RDFa markup unwrapped. -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
