Japanese Kanji - Adding <Ruby> to basic SplitApp Javascript doesn't work RRS feed

  • Question

  • Added this to the basic LIST of data for the SplitView

    ...content: "二人の<ruby><rb>愛</rb><rt>あい</rt></ruby>は強い。<p>"

    and it replies cryptically:

    'WWAHost.exe' (Script): Loaded 'Script Code (MSAppHost/1.0)'.
    Exception is about to be caught by JavaScript library code at line 9428, column 9 in ms-appx://microsoft.winjs.1.0/js/base.js
    0x800c001c - JavaScript runtime error: Unable to add dynamic content. A script attempted to inject dynamic content, or elements previously modified dynamically, that might be unsafe. For example, using the innerHTML property to add script or malformed HTML will generate this exception. Use the toStaticHTML method to filter dynamic content, or explicitly create elements and attributes with a method such as createElement.  For more information, see http://go.microsoft.com/fwlink/?LinkID=247104.
    The program '[2840] WWAHost.exe' has exited with code -1 (0xffffffff).

    If I get rid of the <ruby> tags and leave only the <p>, it compiles fine.


    What's dynamic about <ruby>? It's just a text formatting tag like <b> or <i>, and I can't figure out why the compiler thinks such a simple tag is 'dynamic'.

    Sunday, March 31, 2013 5:56 AM