开发者

How can i render and work with custom HTML tags like <g:plusone />?

开发者 https://www.devze.com 2023-04-01 11:17 出处:网络
I see google is using its custom tagand i know google is using javascript to render iframe instead of this tag, it开发者_StackOverflow中文版 is intresting and i want to know how can i have my own cust

I see google is using its custom tag and i know google is using javascript to render iframe instead of this tag, it开发者_StackOverflow中文版 is intresting and i want to know how can i have my own custom tag using javascript?


You've been able to have custom tags for awhile by namespacing the XML in your doctype. For example, facebook does it like this:

    xmlns:fb="http://www.facebook.com/2008/fbml"

Beware though, IMO custom tags are a BAD idea. It defeats the whole purpose of having standards and can wreak havoc on maintenance. Make sure you really weigh the pros and cons before going this route.

0

精彩评论

暂无评论...
验证码 换一张
取 消