How to make the browser recognize a custom tag?

I am trying to develop a browser plugin / extension (Firefox or IE or Chrome). The purpose of this is that the plugin / extension should recognize one of my own tags.

For instance:

<myowntag1>
     ...
     <mysubtag1  ... />
     ...
</myowntag1>

How to make the browser recognize this with a plugin / extension?

+3
source share
4 answers

XML ( ) XML , - , XML, - , . , , HTML5 (WHATWG), : , XML HTML , . - XML, SVG MathML, - WHATWG .

+1

XML? - api , xml else ( html) XSLT. , , , - - XHTML ( XML HTML5). , , XML, , XSLT. - ​​ XML/XHTML, . HTML. , HTML . , "target" (< a href= "http://test.com" target = "newtab" > Test </a> ). .

+2

, javascript. Facebook FBML, .

, html custom:header, h1:

<html xmlns:custom>
<body>
    <custom:header text="header text"></custom:header>
</body>
</html>

script :

$el = $("custom\\:header");
$el.html($("<h1>").text($el.attr("text")));

( jQuery ). :

<custom:header text="header text">
    <h1>header text</h1>
</custom:header>

css :

custom\:header {
    color:red;
}
+1

DTD, doctype, mymymy.dtd:

<!DOCTYPE html SYSTEM "mymymy.dtd">

:

0

All Articles