|
28 | 28 | import org.htmlunit.SgmlPage; |
29 | 29 | import org.htmlunit.cyberneko.xerces.util.XMLAttributesImpl; |
30 | 30 | import org.htmlunit.cyberneko.xerces.xni.QName; |
| 31 | +import org.htmlunit.source.ElementTestSource; |
31 | 32 | import org.htmlunit.util.OrderedFastHashMap; |
32 | 33 | import org.xml.sax.Attributes; |
33 | 34 |
|
|
51 | 52 | */ |
52 | 53 | public class DefaultElementFactory implements ElementFactory { |
53 | 54 |
|
54 | | - // for performance optimization |
55 | | - static final class OrderedFastHashMapWithLowercaseKeys<K, V> extends OrderedFastHashMap<K, V> { |
56 | | - OrderedFastHashMapWithLowercaseKeys(final int size) { |
57 | | - super(size); |
58 | | - } |
59 | | - } |
60 | | - |
61 | 55 | /** Logging support. */ |
62 | 56 | private static final Log LOG = LogFactory.getLog(DefaultElementFactory.class); |
63 | 57 |
|
64 | 58 | /** |
65 | | - * You can generate your own test cases by looking into ElementTestSource.generateTestForHtmlElements. |
| 59 | + * You can generate your own test cases by looking into |
| 60 | + * {@link ElementTestSource#generateTestForHtmlElements(String, String)}. |
66 | 61 | */ |
67 | 62 | public static final List<String> SUPPORTED_TAGS_ = Collections.unmodifiableList(Arrays.asList( |
68 | 63 | HtmlAbbreviated.TAG_NAME, HtmlAcronym.TAG_NAME, |
@@ -118,6 +113,13 @@ static final class OrderedFastHashMapWithLowercaseKeys<K, V> extends OrderedFast |
118 | 113 | HtmlVariable.TAG_NAME, HtmlVideo.TAG_NAME, HtmlWordBreak.TAG_NAME, HtmlExample.TAG_NAME |
119 | 114 | )); |
120 | 115 |
|
| 116 | + // for performance optimization |
| 117 | + static final class OrderedFastHashMapWithLowercaseKeys<K, V> extends OrderedFastHashMap<K, V> { |
| 118 | + OrderedFastHashMapWithLowercaseKeys(final int size) { |
| 119 | + super(size); |
| 120 | + } |
| 121 | + } |
| 122 | + |
121 | 123 | /** |
122 | 124 | * @param page the owning page |
123 | 125 | * @param tagName the HTML tag name |
|
0 commit comments