Skip to content

Commit

Permalink
Polishing contribution
Browse files Browse the repository at this point in the history
Closes gh-910
  • Loading branch information
rstoyanchev committed Nov 24, 2021
1 parent 913cc07 commit 0d7c562
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2018 the original author or authors.
* Copyright 2002-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -97,12 +97,11 @@ public void writeAttribute(String attributeName, String attributeValue) throws J
this.writer.append(" ").append(attributeName).append("=\"")
.append(attributeValue).append("\"");
}

/**
* Write an empty HTML attribute with the specified name.
* <p>Be sure to write all attributes <strong>before</strong> writing
* any inner text or nested tags.
* @throws IllegalStateException if the opening tag is closed
* Variant of {@link #writeAttribute(String, String)} for writing empty HTML
* attributes without a value such as {@code required}.
* @since 5.3.14
*/
public void writeAttribute(String attributeName) throws JspException {
if (currentState().isBlockTag()) {
Expand Down

0 comments on commit 0d7c562

Please sign in to comment.