File tree 2 files changed +0
-12
lines changed
2 files changed +0
-12
lines changed Original file line number Diff line number Diff line change 8
8
*/
9
9
10
10
import {
11
- ID_ATTRIBUTE_NAME ,
12
11
ROOT_ATTRIBUTE_NAME ,
13
12
BOOLEAN ,
14
13
OVERLOADED_BOOLEAN ,
@@ -24,16 +23,6 @@ import quoteAttributeValueForBrowser from './quoteAttributeValueForBrowser';
24
23
* Operations for dealing with DOM properties.
25
24
*/
26
25
27
- /**
28
- * Creates markup for the ID property.
29
- *
30
- * @param {string } id Unescaped ID.
31
- * @return {string } Markup string.
32
- */
33
- export function createMarkupForID ( id : string ) : string {
34
- return ID_ATTRIBUTE_NAME + '=' + quoteAttributeValueForBrowser ( id ) ;
35
- }
36
-
37
26
export function createMarkupForRoot ( ) : string {
38
27
return ROOT_ATTRIBUTE_NAME + '=""' ;
39
28
}
Original file line number Diff line number Diff line change @@ -62,7 +62,6 @@ export const ATTRIBUTE_NAME_START_CHAR =
62
62
export const ATTRIBUTE_NAME_CHAR =
63
63
ATTRIBUTE_NAME_START_CHAR + '\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040' ;
64
64
65
- export const ID_ATTRIBUTE_NAME = 'data-reactid' ;
66
65
export const ROOT_ATTRIBUTE_NAME = 'data-reactroot' ;
67
66
export const VALID_ATTRIBUTE_NAME_REGEX = new RegExp (
68
67
'^[' + ATTRIBUTE_NAME_START_CHAR + '][' + ATTRIBUTE_NAME_CHAR + ']*$' ,
You can’t perform that action at this time.
0 commit comments