Why does toStaticHTML remove data-* attributes

后端 未结 3 508
臣服心动
臣服心动 2021-01-14 17:21

My application dynamically builds HTML content as a string and when finished the content is being attached to the DOM. In WinJS however this throws exceptions once I try to

3条回答
  •  感情败类
    2021-01-14 17:36

    The data-role-attribute is not listed here: http://msdn.microsoft.com/en-us/library/windows/apps/hh465388.aspx

    It's an unknown attribute and will be removed.

提交回复
热议问题