This page tests AWeb's compatibility with the HTML 4.0 standard (W3C Recommendation, December 1997). Each section demonstrates supported features and clearly marks incompatibilities or limitations based on the AWeb documentation.
FORM with METHOD, ACTION, TARGET, ENCTYPE attributes - Fully supported (see html-ej.html#FORM)
INPUT types: text, password, hidden, checkbox, radio, submit, reset, button, file - All supported (see html-ej.html#INPUT)
SELECT with NAME, MULTIPLE, SIZE attributes - Fully supported (see html-ks.html#SELECT)
OPTION with VALUE, SELECTED attributes - Fully supported (see html-ks.html#OPTION)
TEXTAREA with NAME, ROWS, COLS attributes - Fully supported (see html-tz.html#TEXTAREA)
BUTTON element with TYPE attribute - Fully supported in strict mode (see html-ad.html#BUTTON)
Test Examples
Test 1: Form with TARGET Attribute
What it tests: FORM element with TARGET attribute to submit form results to a specific frame or window.
How to run: Fill out the form below and click Submit. The result should open in a new window or the specified target frame.
Expected results: The form should submit to test.cgi and display results in a new window (TARGET="_blank") or the specified frame.
Test:
Test 2: Form with NAME Attribute
What it tests: FORM element with NAME attribute for JavaScript access.
How to run: This form has a NAME attribute that allows JavaScript to access it via document.forms['namedform'].
Expected results: The form should be accessible via JavaScript using document.forms['namedform'] or document.forms[0].
Test:
Test 3: BUTTON Element (HTML 4.0)
What it tests: BUTTON element with TYPE="submit", TYPE="reset", and TYPE="button" attributes. This is an HTML 4.0 feature that provides more flexibility than INPUT buttons.
How to run: Click each button below to test their functionality.
Expected results: Submit button should submit the form. Reset button should clear form fields. Button element should trigger any ONCLICK handler but not submit the form.
Test:
Test 4: All INPUT Types
What it tests: All supported INPUT types: text, password, hidden, checkbox, radio, submit, reset, button, and file.
How to run: Interact with each input type below. Try typing in text fields, selecting checkboxes/radios, clicking buttons, and selecting a file.
Expected results: All input types should display and function correctly. Text fields should accept input, checkboxes/radios should toggle, buttons should work, and file input should open a file requester.
Test:
Test 5: SELECT with SIZE Attribute
What it tests: SELECT element with SIZE attribute to control whether it displays as a dropdown (SIZE=1 or omitted) or a list box (SIZE>1).
How to run: Compare the two select elements below - one is a dropdown, the other is a list box.
Expected results: The first SELECT should display as a dropdown menu. The second SELECT with SIZE="3" should display as a list box showing 3 options at once.
Test:
Test 6: SELECT with MULTIPLE Attribute
What it tests: SELECT element with MULTIPLE attribute for selecting multiple options simultaneously.
How to run: Hold Ctrl (or Cmd on Mac) and click multiple options in the list below.
Expected results: You should be able to select multiple options by holding Ctrl/Cmd while clicking. Selected options should be highlighted.
Test:
Test 7: TEXTAREA with ROWS and COLS
What it tests: TEXTAREA element with ROWS and COLS attributes to control the visible size of the text area.
How to run: Type multiple lines of text in the textarea below. Try pressing Enter to create new lines.
Expected results: The textarea should display with the specified number of rows and columns. It should be scrollable if content exceeds the visible area. Line breaks should be preserved.
Test:
Test 8: Comprehensive HTML 4.0 Form
What it tests: A complete HTML 4.0 form with all supported elements and attributes working together, including FORM TARGET, NAME, BUTTON elements, and all input types.
How to run: Fill out all fields in the comprehensive form below, then test Submit, Reset, and Button elements.
Expected results: All form elements should work correctly. Submit should send all form data. Reset should clear all fields. The form demonstrates all HTML 4.0 form capabilities supported by AWeb.
Test:
Not Supported
INPUT TYPE="image" - Not documented in AWeb HTML reference
LABEL element - Not documented in AWeb HTML reference
FIELDSET and LEGEND - Not documented in AWeb HTML reference
OPTGROUP element - Not documented in AWeb HTML reference
CDATA sections - Supports <![CDATA[...]]> for embedding unparsed content
XHTML Mobile Profile (XHTML-MP) - Automatically detected and supported
Test Examples
Test 1: Self-Closing Tags (XHTML Syntax)
What it tests: XHTML self-closing tag syntax where empty elements must be closed with />.
How to run: View this page - the self-closing tags below should render correctly.
Expected results: All self-closing tags should display properly. Line breaks, horizontal rules, and images should render correctly.
Test:
This paragraph contains a self-closing line break: After the break.
This paragraph contains a self-closing horizontal rule:
After the rule.
Self-closing image tag (if image exists):
Test 2: CDATA Sections
What it tests: CDATA sections allow embedding content that contains characters like < and & without them being parsed as markup.
How to run: View this page - the CDATA content below should appear as literal text.
Expected results: The content inside CDATA should appear as plain text, with HTML tags visible as text rather than being parsed.
Test:
CDATA content example:
and & entities without being parsed.
The browser should display this as literal text.
]]>
After CDATA section.
Test 3: CDATA in Script Context
What it tests: CDATA sections are commonly used in XHTML script tags to avoid parsing issues with < and & characters in JavaScript.
How to run: View the page source or check if JavaScript executes correctly.
Expected results: The JavaScript should execute correctly, and CDATA content should be handled properly.
Test:
Test 4: XHTML Document Detection
What it tests: AWeb automatically detects XHTML documents via DOCTYPE or XML declaration and applies strict parsing mode.
How to run: This test requires viewing an actual XHTML document. Create a file with XHTML DOCTYPE to test.
Expected results: Documents with XHTML DOCTYPEs should be automatically detected and parsed in strict mode.
Example XHTML DOCTYPE:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Example XML declaration:
<?xml version="1.0" encoding="UTF-8"?>
Notes
XHTML support is automatically enabled when XHTML DOCTYPE or XML declaration is detected
Self-closing tag syntax works in both HTML and XHTML modes for compatibility
CDATA sections are properly extracted and displayed as text content
XHTML Mobile Profile (XHTML-MP) documents are automatically recognized