어떻게 바꿔야 하는지

국내에 웹 사이트들이 웹 표준을 지키고 OS나 브라우저와 관계 없이 접근성을 향상 시키기 위한 사이트 버그 신고 및 문제 해결을 위한 게시판입니다.
Post Reply
대류

어떻게 바꿔야 하는지

Post by 대류 »

유효성 검사에서 아래와 같이 두 부분이 걸렸는데요...
사용되지 않는 명령어인가요?
어떻게 바꿔야 할지요...
xhtml1.1 입니다.
Error Line 17 column 13: there is no attribute "onLoad".

Code: Select all

<body onLoad="n_s(in_ex.checked='1')">
You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute.


Error Line 26 column 42: there is no attribute "onClick".

Code: Select all

<input id="in_ex" type="checkbox" onClick="n_s(this.checked)" /><a id="li"></a>
hyeonseok
해커
해커
Posts: 691
Joined: 2004 08 11 22:14 59
Contact:

Post by hyeonseok »

xhtml에서 모든 속성은 소문자 입니다.

onLoad가 아니라 onload
onClick이 아니라 onclick으로 바꾸시면 됩니다.
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests