forked from nahsra/antisamy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into nahsragh-554
# Conflicts: # src/test/java/org/owasp/validator/html/test/AntiSamyTest.java
- Loading branch information
Showing
11 changed files
with
1,020 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
src/main/java/org/owasp/validator/css/media/CssMediaFeature.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package org.owasp.validator.css.media; | ||
|
||
import org.w3c.css.sac.LexicalUnit; | ||
|
||
public class CssMediaFeature { | ||
|
||
private final String name; | ||
private final LexicalUnit expression; | ||
|
||
/** | ||
* Constructor. | ||
* | ||
* @param name Feature-name | ||
* @param expression expression, may be null | ||
*/ | ||
public CssMediaFeature(String name, LexicalUnit expression) { | ||
this.name = name; | ||
this.expression = expression; | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public LexicalUnit getExpression() { | ||
return expression; | ||
} | ||
} |
Oops, something went wrong.