@return the same value as returned by #getTagName()
()
| 424 | * @return the same value as returned by {@link #getTagName()} |
| 425 | */ |
| 426 | @Override |
| 427 | public String getNodeName() { |
| 428 | final String prefix = getPrefix(); |
| 429 | if (prefix != null) { |
| 430 | // create string builder only if needed (performance) |
| 431 | final StringBuilder name = new StringBuilder(prefix.toLowerCase(Locale.ROOT)) |
| 432 | .append(':') |
| 433 | .append(getLocalName().toLowerCase(Locale.ROOT)); |
| 434 | return name.toString(); |
| 435 | } |
| 436 | return getLocalName().toLowerCase(Locale.ROOT); |
| 437 | } |
| 438 | |
| 439 | /** |
| 440 | * Returns this element's tab index, if it has one. If the tab index is outside the |