admin管理员组文章数量:1025526
Here is a small Javascript. (It is a ‘smallest example’.)
<script>
var now = new Date();
var minute = now.getMinutes();
if (minute < 10) minute = "0" + minute;
document.write(now.getHours() + ":" + minute);
</script>
This throws the following error in Firefox (16.0.2):
nicht wohlgeformt
moz-nullprincipal:{356ab095-a1ae-4ba6-a22c-1df0f260f702}
if (minute < 10) minute = "0" + minute;
------------- ⬏
(“nicht wohlgeformt”: German, meaning ‘not wellformed’.)
What is the meaning of “moz-nullprincipal”. I didn’t find anything informative about that error. What’s wrong with that line?
Here is a small Javascript. (It is a ‘smallest example’.)
<script>
var now = new Date();
var minute = now.getMinutes();
if (minute < 10) minute = "0" + minute;
document.write(now.getHours() + ":" + minute);
</script>
This throws the following error in Firefox (16.0.2):
nicht wohlgeformt
moz-nullprincipal:{356ab095-a1ae-4ba6-a22c-1df0f260f702}
if (minute < 10) minute = "0" + minute;
------------- ⬏
(“nicht wohlgeformt”: German, meaning ‘not wellformed’.)
What is the meaning of “moz-nullprincipal”. I didn’t find anything informative about that error. What’s wrong with that line?
Share Improve this question edited Sep 12, 2015 at 1:51 Mogsdad 45.8k21 gold badges163 silver badges286 bronze badges asked Nov 21, 2012 at 7:49 Matthias RongeMatthias Ronge 10.2k7 gold badges48 silver badges68 bronze badges 1- I can not reproduce this on Firefox 15.0.1 or 16.0 under Mac OS 10.8.2. This might be a bug with your current config, or maybe a plugin. – Jørgen R Commented Nov 21, 2012 at 8:09
2 Answers
Reset to default 2I googled the keyword "moz-nullprincipal", then the error occurs by Google Toolbar.
(Japanese) http://st777.seesaa/article/139189718.html
The page said you should re-install new version of Google Toolbar.
The code is valid, this should work. moz-nullprincipal is an error trigger by firefox in some json / ajax cross scripting security. See here : Cross-domain Ajax call gets no element found Location: moz-nullprincipal
Are you sure that the error "not wellformed" and "moz-nullprincipal:{356ab095-a1ae-4ba6-a22c-1df0f260f702}" are related ?
Can you try this way ?
now = new Date();
var minute = now.getMinutes();
if (minute < 10) minute = "0" + minute.toString();
document.write(now.getHours() + ":" + minute);
Which version of firefox are you using ? Are you using JQuery ?
Here is a small Javascript. (It is a ‘smallest example’.)
<script>
var now = new Date();
var minute = now.getMinutes();
if (minute < 10) minute = "0" + minute;
document.write(now.getHours() + ":" + minute);
</script>
This throws the following error in Firefox (16.0.2):
nicht wohlgeformt
moz-nullprincipal:{356ab095-a1ae-4ba6-a22c-1df0f260f702}
if (minute < 10) minute = "0" + minute;
------------- ⬏
(“nicht wohlgeformt”: German, meaning ‘not wellformed’.)
What is the meaning of “moz-nullprincipal”. I didn’t find anything informative about that error. What’s wrong with that line?
Here is a small Javascript. (It is a ‘smallest example’.)
<script>
var now = new Date();
var minute = now.getMinutes();
if (minute < 10) minute = "0" + minute;
document.write(now.getHours() + ":" + minute);
</script>
This throws the following error in Firefox (16.0.2):
nicht wohlgeformt
moz-nullprincipal:{356ab095-a1ae-4ba6-a22c-1df0f260f702}
if (minute < 10) minute = "0" + minute;
------------- ⬏
(“nicht wohlgeformt”: German, meaning ‘not wellformed’.)
What is the meaning of “moz-nullprincipal”. I didn’t find anything informative about that error. What’s wrong with that line?
Share Improve this question edited Sep 12, 2015 at 1:51 Mogsdad 45.8k21 gold badges163 silver badges286 bronze badges asked Nov 21, 2012 at 7:49 Matthias RongeMatthias Ronge 10.2k7 gold badges48 silver badges68 bronze badges 1- I can not reproduce this on Firefox 15.0.1 or 16.0 under Mac OS 10.8.2. This might be a bug with your current config, or maybe a plugin. – Jørgen R Commented Nov 21, 2012 at 8:09
2 Answers
Reset to default 2I googled the keyword "moz-nullprincipal", then the error occurs by Google Toolbar.
(Japanese) http://st777.seesaa/article/139189718.html
The page said you should re-install new version of Google Toolbar.
The code is valid, this should work. moz-nullprincipal is an error trigger by firefox in some json / ajax cross scripting security. See here : Cross-domain Ajax call gets no element found Location: moz-nullprincipal
Are you sure that the error "not wellformed" and "moz-nullprincipal:{356ab095-a1ae-4ba6-a22c-1df0f260f702}" are related ?
Can you try this way ?
now = new Date();
var minute = now.getMinutes();
if (minute < 10) minute = "0" + minute.toString();
document.write(now.getHours() + ":" + minute);
Which version of firefox are you using ? Are you using JQuery ?
本文标签: javascriptWhat means moznullprincipalStack Overflow
版权声明:本文标题:javascript - What means moz-nullprincipal? - Stack Overflow 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745629333a2160062.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论