public void startElement()

in src/main/java/org/apache/sling/rewriter/impl/components/Html5Serializer.java [135:166]


    public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException {
        boolean endSlash = false;
        writer.write(CHAR_LT);
        writer.write(localName);

        for (int i = 0; i < atts.getLength(); i++) {
            if ("endSlash".equals(atts.getQName(i))) {
                endSlash = true;
            }
            String value = atts.getValue(i);
            if (shouldContinue(localName, atts, i)) {
                continue;
            }
            writer.write(CHAR_SP);
            writer.write(atts.getLocalName(i));

            writer.write(CHAR_EQ);
            writer.write(CHAR_QT);
            writer.write(StringEscapeUtils.escapeHtml4(value));
            writer.write(CHAR_QT);
        }

        if (endSlash) {
            writer.write("/");
        }
        writer.write(CHAR_GT);
        if ("script".equals(localName)) {
            inScript = true;
        } else {
            inScript = false;
        }
    }