Can I use SVG within a customized the Azure AD B2C user interface?

拟墨画扇 提交于 2019-12-10 16:12:56

问题


I am building a customized Azure AD B2C user interface.

I have included a SVG tag within my page.

<body>
    <div class="container">
        <div class="row">
            <div class="col-md-12">
                <svg width="100" height="100">
                    <circle cx="50" cy="50" r="40" stroke="green" stroke-width="4" fill="yellow" />
                </svg>

                <div id="api"/></div>
            </div>
        </div>
    </div>    
</body>

If I visit the page directly the SVG tag renders as expected. If I visit the page within the Azure AD B2C flow the SVG tag is omitted.

Is SVG supported within a customized the Azure AD B2C user interface?


回答1:


Nope, not supported unfortunately. See allowed tags in this screenshot:


UserVoice: Stop Blocking Custom HTML Elements and Attributes | Add Angular SSR Support



来源:https://stackoverflow.com/questions/50628190/can-i-use-svg-within-a-customized-the-azure-ad-b2c-user-interface

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!