예제 #1
0
def test_html_blacklist_fieldset():
    """The fieldset element represents a set of form controls."""
    check_html_has_no_output("""
        <fieldset id=sexes>
            <option value="Female">
            <option value="Male">
        </fieldset>
    """)
예제 #2
0
def test_html_blacklist_datalist():
    """The datalist element represents a set of option elements."""
    check_html_has_no_output("""
        <datalist id=sexes>
            <option value="Female">
            <option value="Male">
        </datalist>
    """)
예제 #3
0
def test_html_blacklist_form():
    """The form element is a user-interactive area of a document."""
    check_html_has_no_output("""
        <form>
            <div>
                <label>Customer name: <input></label>
            </div>
            <fieldset>
                <legend> Pizza Size </legend>
                <div><label><input type=radio name=size/>Small</label></div>
                <div><label><input type=radio name=size/>Medium</label></div>
                <div><label><input type=radio name=size/>Large</label></div>
            </fieldset>
        </form>
    """)
예제 #4
0
def test_html_blacklist_textarea():
    """The textarea element defines a multi-line text input control."""
    check_html_has_no_output("""
        <textarea>Some text here</textarea>
    """)
예제 #5
0
def test_html_blacklist_meter():
    """The meter element represents a measurement within a known range."""
    check_html_has_no_output("""
        <meter value=6 max=8>6 blocks used (out of 8 total)</meter>
    """)
예제 #6
0
def test_html_blacklist_label():
    """The label element defines the label for another element."""
    check_html_has_no_output("""
        <label><input type=radio name=size/>Large</label>
    """)
예제 #7
0
def test_html_blacklist_input():
    """The input element represents a typed data field."""
    check_html_has_no_output("""
        <input type=radio name=size/>
    """)
예제 #8
0
def test_html_blacklist_button():
    """The button element defines a clickable button."""
    check_html_has_no_output("""
        <button type="button">Click Me!</button>
    """)