nokogiri 1.0.7 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of nokogiri might be problematic. Click here for more details.
- data/History.ja.txt +14 -0
- data/History.txt +16 -0
- data/Manifest.txt +5 -0
- data/README.ja.txt +1 -1
- data/README.txt +1 -1
- data/Rakefile +5 -8
- data/ext/nokogiri/extconf.rb +46 -7
- data/ext/nokogiri/html_sax_parser.c +12 -8
- data/ext/nokogiri/xml_node.c +41 -26
- data/ext/nokogiri/xml_node_set.c +3 -0
- data/ext/nokogiri/xml_sax_parser.c +1 -0
- data/ext/nokogiri/xml_xpath_context.c +120 -4
- data/ext/nokogiri/xslt_stylesheet.c +22 -7
- data/lib/nokogiri/css.rb +1 -0
- data/lib/nokogiri/css/generated_parser.rb +142 -122
- data/lib/nokogiri/css/parser.rb +23 -19
- data/lib/nokogiri/css/parser.y +3 -1
- data/lib/nokogiri/css/selector_handler.rb +6 -0
- data/lib/nokogiri/css/xpath_visitor.rb +5 -2
- data/lib/nokogiri/html.rb +10 -0
- data/lib/nokogiri/version.rb +1 -1
- data/lib/nokogiri/xml.rb +1 -0
- data/lib/nokogiri/xml/node.rb +103 -11
- data/lib/nokogiri/xml/node_set.rb +2 -1
- data/lib/nokogiri/xml/xpath_handler.rb +6 -0
- data/lib/nokogiri/xslt.rb +17 -0
- data/test/css/test_parser.rb +6 -6
- data/test/css/test_xpath_visitor.rb +10 -0
- data/test/files/exslt.xml +8 -0
- data/test/files/exslt.xslt +35 -0
- data/test/helper.rb +2 -0
- data/test/hpricot/test_parser.rb +7 -5
- data/test/test_memory_leak.rb +2 -2
- data/test/test_xslt_transforms.rb +64 -0
- data/test/xml/test_node.rb +47 -0
- data/test/xml/test_xpath.rb +98 -0
- data/vendor/hoe.rb +22 -18
- metadata +8 -2
@@ -3,6 +3,7 @@
|
|
3
3
|
#include <libxslt/xsltInternals.h>
|
4
4
|
#include <libxslt/xsltutils.h>
|
5
5
|
#include <libxslt/transform.h>
|
6
|
+
#include <libexslt/exslt.h>
|
6
7
|
|
7
8
|
static void dealloc(xsltStylesheetPtr doc)
|
8
9
|
{
|
@@ -22,6 +23,7 @@ static VALUE parse_stylesheet_doc(VALUE klass, VALUE xmldocobj)
|
|
22
23
|
xmlDocPtr xml ;
|
23
24
|
xsltStylesheetPtr ss ;
|
24
25
|
Data_Get_Struct(xmldocobj, xmlDoc, xml);
|
26
|
+
exsltRegisterAll();
|
25
27
|
ss = xsltParseStylesheetDoc(xmlCopyDoc(xml, 1)); /* 1 => recursive */
|
26
28
|
return Data_Wrap_Struct(klass, NULL, dealloc, ss);
|
27
29
|
}
|
@@ -48,16 +50,15 @@ static VALUE serialize(VALUE self, VALUE xmlobj)
|
|
48
50
|
xmlFree(doc_ptr);
|
49
51
|
return rval ;
|
50
52
|
}
|
51
|
-
|
52
|
-
|
53
53
|
/*
|
54
54
|
* call-seq:
|
55
|
-
*
|
55
|
+
* transform(document, params)
|
56
56
|
*
|
57
57
|
* Apply an XSLT stylesheet to an XML::Document.
|
58
58
|
* +params+ is an array of strings used as XSLT parameters.
|
59
|
+
* returns Nokogiri::XML::Document
|
59
60
|
*/
|
60
|
-
static VALUE
|
61
|
+
static VALUE transform(int argc, VALUE* argv, VALUE self)
|
61
62
|
{
|
62
63
|
VALUE xmldoc, paramobj ;
|
63
64
|
xmlDocPtr xml ;
|
@@ -65,7 +66,6 @@ static VALUE apply_to(int argc, VALUE* argv, VALUE self)
|
|
65
66
|
xsltStylesheetPtr ss ;
|
66
67
|
const char** params ;
|
67
68
|
int param_len, j ;
|
68
|
-
VALUE resultobj ;
|
69
69
|
|
70
70
|
rb_scan_args(argc, argv, "11", &xmldoc, ¶mobj);
|
71
71
|
if (paramobj == Qnil) { paramobj = rb_ary_new2(0) ; }
|
@@ -84,8 +84,22 @@ static VALUE apply_to(int argc, VALUE* argv, VALUE self)
|
|
84
84
|
|
85
85
|
result = xsltApplyStylesheet(ss, xml, params);
|
86
86
|
free(params);
|
87
|
-
|
88
|
-
return
|
87
|
+
|
88
|
+
return Nokogiri_wrap_xml_document(0, result) ;
|
89
|
+
}
|
90
|
+
|
91
|
+
/*
|
92
|
+
* call-seq:
|
93
|
+
* apply_to(document, params)
|
94
|
+
*
|
95
|
+
* Apply an XSLT stylesheet to an XML::Document.
|
96
|
+
* +params+ is an array of strings used as XSLT parameters.
|
97
|
+
* returns serialized document
|
98
|
+
*/
|
99
|
+
static VALUE apply_to(int argc, VALUE* argv, VALUE self)
|
100
|
+
{
|
101
|
+
return rb_funcall(self, rb_intern("serialize"), 1,
|
102
|
+
transform(argc, argv, self));
|
89
103
|
}
|
90
104
|
|
91
105
|
VALUE cNokogiriXsltStylesheet ;
|
@@ -105,4 +119,5 @@ void init_xslt_stylesheet()
|
|
105
119
|
rb_define_singleton_method(klass, "parse_stylesheet_doc", parse_stylesheet_doc, 1);
|
106
120
|
rb_define_method(klass, "serialize", serialize, 1);
|
107
121
|
rb_define_method(klass, "apply_to", apply_to, -1);
|
122
|
+
rb_define_method(klass, "transform", transform, -1);
|
108
123
|
}
|
data/lib/nokogiri/css.rb
CHANGED
@@ -44,27 +44,29 @@ racc_reduce_table = [
|
|
44
44
|
3, 55, :_reduce_25,
|
45
45
|
3, 55, :_reduce_26,
|
46
46
|
3, 55, :_reduce_27,
|
47
|
+
4, 59, :_reduce_28,
|
48
|
+
4, 59, :_reduce_29,
|
47
49
|
1, 59, :_reduce_none,
|
48
50
|
1, 59, :_reduce_none,
|
49
|
-
4, 60, :
|
50
|
-
3, 60, :
|
51
|
-
2, 60, :
|
52
|
-
1, 60, :
|
53
|
-
2, 61, :
|
54
|
-
2, 61, :
|
51
|
+
4, 60, :_reduce_32,
|
52
|
+
3, 60, :_reduce_33,
|
53
|
+
2, 60, :_reduce_34,
|
54
|
+
1, 60, :_reduce_35,
|
55
|
+
2, 61, :_reduce_36,
|
56
|
+
2, 61, :_reduce_37,
|
55
57
|
1, 52, :_reduce_none,
|
56
58
|
0, 52, :_reduce_none,
|
57
|
-
2, 53, :_reduce_38,
|
58
|
-
2, 53, :_reduce_39,
|
59
59
|
2, 53, :_reduce_40,
|
60
60
|
2, 53, :_reduce_41,
|
61
|
+
2, 53, :_reduce_42,
|
62
|
+
2, 53, :_reduce_43,
|
61
63
|
1, 53, :_reduce_none,
|
62
64
|
1, 53, :_reduce_none,
|
63
65
|
1, 53, :_reduce_none,
|
64
66
|
1, 53, :_reduce_none,
|
65
|
-
1, 62, :
|
66
|
-
4, 58, :
|
67
|
-
4, 58, :
|
67
|
+
1, 62, :_reduce_48,
|
68
|
+
4, 58, :_reduce_49,
|
69
|
+
4, 58, :_reduce_50,
|
68
70
|
0, 58, :_reduce_none,
|
69
71
|
1, 63, :_reduce_none,
|
70
72
|
1, 63, :_reduce_none,
|
@@ -73,96 +75,100 @@ racc_reduce_table = [
|
|
73
75
|
1, 63, :_reduce_none,
|
74
76
|
1, 63, :_reduce_none,
|
75
77
|
1, 63, :_reduce_none,
|
76
|
-
5, 54, :
|
78
|
+
5, 54, :_reduce_59,
|
77
79
|
1, 64, :_reduce_none,
|
78
80
|
2, 47, :_reduce_none,
|
79
81
|
0, 47, :_reduce_none ]
|
80
82
|
|
81
|
-
racc_reduce_n =
|
83
|
+
racc_reduce_n = 63
|
82
84
|
|
83
|
-
racc_shift_n =
|
85
|
+
racc_shift_n = 105
|
84
86
|
|
85
87
|
racc_action_table = [
|
86
|
-
5,
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
43, 15, 10, 1, 18,
|
93
|
-
|
94
|
-
|
95
|
-
9, 12, 15,
|
96
|
-
43,
|
97
|
-
|
88
|
+
5, 28, 27, 22, 10, 5, 27, 5, 24, 1,
|
89
|
+
43, 10, 31, 29, 49, 27, 1, 5, 27, 53,
|
90
|
+
54, 31, 87, 89, 31, 59, 67, 87, 89, 54,
|
91
|
+
10, 68, 102, 101, 26, 7, 9, 12, 15, 10,
|
92
|
+
7, 18, 7, 9, 12, 15, 10, 10, 18, 90,
|
93
|
+
92, 93, 7, 86, 90, 92, 93, 5, 86, 43,
|
94
|
+
43, 10, 9, 85, 15, 10, 1, 18, 85, 10,
|
95
|
+
43, 9, 57, 15, 43, 43, 18, 44, 9, 9,
|
96
|
+
15, 15, 56, 18, 18, 38, 39, 40, 43, 43,
|
97
|
+
44, 72, 7, 9, 12, 15, 73, 9, 18, 15,
|
98
|
+
43, 9, 18, 15, 43, 55, 18, 43, 43, 43,
|
99
|
+
52, 34, 82, 35, 36, 51, 44, 43, 32, 95,
|
100
|
+
43, 97, 43, 99, 100, 15, 43, 43 ]
|
98
101
|
|
99
102
|
racc_action_check = [
|
100
|
-
0,
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
16,
|
109
|
-
|
110
|
-
|
111
|
-
|
103
|
+
0, 6, 5, 5, 0, 18, 74, 58, 5, 0,
|
104
|
+
38, 58, 74, 6, 18, 7, 58, 42, 75, 24,
|
105
|
+
24, 7, 77, 77, 75, 30, 42, 78, 78, 31,
|
106
|
+
14, 42, 98, 98, 5, 0, 0, 0, 0, 70,
|
107
|
+
18, 0, 58, 58, 58, 58, 16, 11, 58, 77,
|
108
|
+
77, 77, 42, 77, 78, 78, 78, 37, 78, 34,
|
109
|
+
35, 37, 14, 77, 14, 3, 37, 14, 78, 4,
|
110
|
+
36, 70, 28, 70, 29, 39, 70, 16, 16, 11,
|
111
|
+
16, 11, 27, 16, 11, 13, 13, 13, 43, 44,
|
112
|
+
46, 51, 37, 37, 37, 37, 53, 3, 37, 3,
|
113
|
+
54, 4, 3, 4, 56, 25, 4, 66, 67, 68,
|
114
|
+
23, 13, 73, 13, 13, 22, 17, 15, 9, 79,
|
115
|
+
81, 88, 91, 94, 96, 2, 101, 102 ]
|
112
116
|
|
113
117
|
racc_action_pointer = [
|
114
|
-
-2, nil,
|
115
|
-
nil,
|
116
|
-
nil, nil, 68, 63,
|
117
|
-
-
|
118
|
-
nil, nil,
|
119
|
-
nil,
|
120
|
-
nil, nil, nil, nil,
|
121
|
-
nil,
|
122
|
-
nil, nil,
|
123
|
-
|
118
|
+
-2, nil, 85, 59, 63, -8, 1, 5, nil, 107,
|
119
|
+
nil, 41, nil, 78, 24, 108, 40, 79, 3, nil,
|
120
|
+
nil, nil, 108, 68, 8, 63, nil, 70, 72, 65,
|
121
|
+
-17, 17, nil, nil, 50, 51, 61, 55, 1, 66,
|
122
|
+
nil, nil, 15, 79, 80, nil, 53, nil, nil, nil,
|
123
|
+
nil, 75, nil, 89, 91, nil, 95, nil, 5, nil,
|
124
|
+
nil, nil, nil, nil, nil, nil, 98, 99, 100, nil,
|
125
|
+
33, nil, nil, 96, -4, 8, nil, 19, 24, 78,
|
126
|
+
nil, 111, nil, nil, nil, nil, nil, nil, 80, nil,
|
127
|
+
nil, 113, nil, nil, 82, nil, 82, nil, 22, nil,
|
128
|
+
nil, 117, 118, nil, nil ]
|
124
129
|
|
125
130
|
racc_action_default = [
|
126
|
-
-
|
127
|
-
-
|
128
|
-
-
|
129
|
-
-
|
130
|
-
-6, -
|
131
|
-
-
|
132
|
-
-7, -16, -3, -4, -
|
133
|
-
-
|
134
|
-
-
|
135
|
-
-
|
131
|
+
-63, -19, -12, -46, -45, -63, -63, -63, -2, -63,
|
132
|
+
-48, -47, -20, -17, -44, -62, -39, -15, -63, -13,
|
133
|
+
-42, -41, -35, -63, -30, -63, -24, -31, -63, -62,
|
134
|
+
-63, -30, -18, -43, -62, -62, -62, -63, -62, -62,
|
135
|
+
-6, -40, -63, -62, -62, -9, -38, -11, -14, -37,
|
136
|
+
-36, -63, -25, -34, -62, -26, -62, 105, -63, -27,
|
137
|
+
-5, -8, -7, -16, -3, -4, -62, -62, -62, -61,
|
138
|
+
-63, -10, -33, -63, -63, -63, -1, -51, -51, -63,
|
139
|
+
-60, -62, -32, -28, -29, -52, -56, -57, -63, -58,
|
140
|
+
-53, -62, -54, -55, -63, -23, -63, -22, -63, -21,
|
141
|
+
-59, -62, -62, -49, -50 ]
|
136
142
|
|
137
143
|
racc_goto_table = [
|
138
|
-
42,
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
nil,
|
143
|
-
|
144
|
-
nil, nil,
|
145
|
-
|
146
|
-
|
144
|
+
42, 23, 50, 30, 6, 20, 21, 8, 47, 48,
|
145
|
+
88, 94, 19, 33, 58, 45, 41, 37, 46, 60,
|
146
|
+
61, 62, 25, 64, 65, 81, 66, nil, 69, 70,
|
147
|
+
nil, nil, nil, nil, nil, nil, nil, nil, 71, 74,
|
148
|
+
nil, 75, nil, nil, 63, nil, nil, nil, nil, nil,
|
149
|
+
nil, 77, 78, 79, nil, nil, nil, nil, nil, nil,
|
150
|
+
nil, nil, nil, nil, nil, 76, 96, nil, nil, nil,
|
151
|
+
83, 84, 80, nil, nil, nil, 98, nil, nil, nil,
|
152
|
+
nil, nil, nil, nil, nil, nil, 103, 104 ]
|
147
153
|
|
148
154
|
racc_goto_check = [
|
149
|
-
2,
|
150
|
-
|
151
|
-
2, 2, 15, 2, 2, 19,
|
152
|
-
|
153
|
-
nil,
|
154
|
-
2, 2,
|
155
|
-
nil, nil,
|
156
|
-
|
157
|
-
2, 2 ]
|
155
|
+
2, 14, 10, 14, 1, 8, 8, 3, 9, 9,
|
156
|
+
13, 13, 11, 8, 2, 7, 8, 4, 8, 2,
|
157
|
+
2, 2, 15, 2, 2, 19, 10, nil, 2, 2,
|
158
|
+
nil, nil, nil, nil, nil, nil, nil, nil, 9, 2,
|
159
|
+
nil, 2, nil, nil, 3, nil, nil, nil, nil, nil,
|
160
|
+
nil, 2, 2, 2, nil, nil, nil, nil, nil, nil,
|
161
|
+
nil, nil, nil, nil, nil, 3, 2, nil, nil, nil,
|
162
|
+
14, 14, 8, nil, nil, nil, 2, nil, nil, nil,
|
163
|
+
nil, nil, nil, nil, nil, nil, 2, 2 ]
|
158
164
|
|
159
165
|
racc_goto_pointer = [
|
160
|
-
nil,
|
161
|
-
-
|
166
|
+
nil, 4, -15, 7, 4, nil, nil, -1, 2, -8,
|
167
|
+
-16, 10, nil, -67, -4, 17, nil, nil, nil, -45 ]
|
162
168
|
|
163
169
|
racc_goto_default = [
|
164
170
|
nil, nil, nil, nil, nil, 13, 16, nil, 17, nil,
|
165
|
-
2, 3, 4, nil, nil, nil, 11, 14,
|
171
|
+
2, 3, 4, nil, nil, nil, 11, 14, 91, nil ]
|
166
172
|
|
167
173
|
racc_token_table = {
|
168
174
|
false => 0,
|
@@ -506,12 +512,26 @@ module_eval <<'.,.,', 'lib/nokogiri/css/parser.y', 104
|
|
506
512
|
end
|
507
513
|
.,.,
|
508
514
|
|
509
|
-
|
515
|
+
module_eval <<'.,.,', 'lib/nokogiri/css/parser.y', 106
|
516
|
+
def _reduce_28( val, _values, result )
|
517
|
+
result = [val.first, val.last]
|
518
|
+
result
|
519
|
+
end
|
520
|
+
.,.,
|
510
521
|
|
511
|
-
|
522
|
+
module_eval <<'.,.,', 'lib/nokogiri/css/parser.y', 107
|
523
|
+
def _reduce_29( val, _values, result )
|
524
|
+
result = [val.first, val.last]
|
525
|
+
result
|
526
|
+
end
|
527
|
+
.,.,
|
528
|
+
|
529
|
+
# reduce 30 omitted
|
512
530
|
|
513
|
-
|
514
|
-
|
531
|
+
# reduce 31 omitted
|
532
|
+
|
533
|
+
module_eval <<'.,.,', 'lib/nokogiri/css/parser.y', 120
|
534
|
+
def _reduce_32( val, _values, result )
|
515
535
|
if val[1] == 'n'
|
516
536
|
result = Node.new(:AN_PLUS_B, val)
|
517
537
|
else
|
@@ -521,8 +541,8 @@ module_eval <<'.,.,', 'lib/nokogiri/css/parser.y', 118
|
|
521
541
|
end
|
522
542
|
.,.,
|
523
543
|
|
524
|
-
module_eval <<'.,.,', 'lib/nokogiri/css/parser.y',
|
525
|
-
def
|
544
|
+
module_eval <<'.,.,', 'lib/nokogiri/css/parser.y', 131
|
545
|
+
def _reduce_33( val, _values, result )
|
526
546
|
# n+3, -n+3
|
527
547
|
if val[0] == 'n'
|
528
548
|
val.unshift("1")
|
@@ -538,8 +558,8 @@ module_eval <<'.,.,', 'lib/nokogiri/css/parser.y', 129
|
|
538
558
|
end
|
539
559
|
.,.,
|
540
560
|
|
541
|
-
module_eval <<'.,.,', 'lib/nokogiri/css/parser.y',
|
542
|
-
def
|
561
|
+
module_eval <<'.,.,', 'lib/nokogiri/css/parser.y', 142
|
562
|
+
def _reduce_34( val, _values, result )
|
543
563
|
if val[1] == 'n'
|
544
564
|
val << "+"
|
545
565
|
val << "0"
|
@@ -551,8 +571,8 @@ module_eval <<'.,.,', 'lib/nokogiri/css/parser.y', 140
|
|
551
571
|
end
|
552
572
|
.,.,
|
553
573
|
|
554
|
-
module_eval <<'.,.,', 'lib/nokogiri/css/parser.y',
|
555
|
-
def
|
574
|
+
module_eval <<'.,.,', 'lib/nokogiri/css/parser.y', 154
|
575
|
+
def _reduce_35( val, _values, result )
|
556
576
|
if val[0] == 'even'
|
557
577
|
val = ["2","n","+","0"]
|
558
578
|
result = Node.new(:AN_PLUS_B, val)
|
@@ -566,85 +586,81 @@ module_eval <<'.,.,', 'lib/nokogiri/css/parser.y', 152
|
|
566
586
|
end
|
567
587
|
.,.,
|
568
588
|
|
569
|
-
module_eval <<'.,.,', 'lib/nokogiri/css/parser.y',
|
570
|
-
def
|
589
|
+
module_eval <<'.,.,', 'lib/nokogiri/css/parser.y', 159
|
590
|
+
def _reduce_36( val, _values, result )
|
571
591
|
result = Node.new(:PSEUDO_CLASS, [val[1]])
|
572
592
|
result
|
573
593
|
end
|
574
594
|
.,.,
|
575
595
|
|
576
|
-
module_eval <<'.,.,', 'lib/nokogiri/css/parser.y',
|
577
|
-
def
|
596
|
+
module_eval <<'.,.,', 'lib/nokogiri/css/parser.y', 159
|
597
|
+
def _reduce_37( val, _values, result )
|
578
598
|
result = Node.new(:PSEUDO_CLASS, [val[1]])
|
579
599
|
result
|
580
600
|
end
|
581
601
|
.,.,
|
582
602
|
|
583
|
-
# reduce
|
603
|
+
# reduce 38 omitted
|
584
604
|
|
585
|
-
# reduce
|
605
|
+
# reduce 39 omitted
|
586
606
|
|
587
|
-
module_eval <<'.,.,', 'lib/nokogiri/css/parser.y',
|
588
|
-
def
|
607
|
+
module_eval <<'.,.,', 'lib/nokogiri/css/parser.y', 169
|
608
|
+
def _reduce_40( val, _values, result )
|
589
609
|
result = Node.new(:COMBINATOR, val)
|
590
610
|
result
|
591
611
|
end
|
592
612
|
.,.,
|
593
613
|
|
594
|
-
module_eval <<'.,.,', 'lib/nokogiri/css/parser.y',
|
595
|
-
def
|
614
|
+
module_eval <<'.,.,', 'lib/nokogiri/css/parser.y', 172
|
615
|
+
def _reduce_41( val, _values, result )
|
596
616
|
result = Node.new(:COMBINATOR, val)
|
597
617
|
result
|
598
618
|
end
|
599
619
|
.,.,
|
600
620
|
|
601
|
-
module_eval <<'.,.,', 'lib/nokogiri/css/parser.y',
|
602
|
-
def
|
621
|
+
module_eval <<'.,.,', 'lib/nokogiri/css/parser.y', 175
|
622
|
+
def _reduce_42( val, _values, result )
|
603
623
|
result = Node.new(:COMBINATOR, val)
|
604
624
|
result
|
605
625
|
end
|
606
626
|
.,.,
|
607
627
|
|
608
|
-
module_eval <<'.,.,', 'lib/nokogiri/css/parser.y',
|
609
|
-
def
|
628
|
+
module_eval <<'.,.,', 'lib/nokogiri/css/parser.y', 178
|
629
|
+
def _reduce_43( val, _values, result )
|
610
630
|
result = Node.new(:COMBINATOR, val)
|
611
631
|
result
|
612
632
|
end
|
613
633
|
.,.,
|
614
634
|
|
615
|
-
# reduce 42 omitted
|
616
|
-
|
617
|
-
# reduce 43 omitted
|
618
|
-
|
619
635
|
# reduce 44 omitted
|
620
636
|
|
621
637
|
# reduce 45 omitted
|
622
638
|
|
623
|
-
|
624
|
-
|
639
|
+
# reduce 46 omitted
|
640
|
+
|
641
|
+
# reduce 47 omitted
|
642
|
+
|
643
|
+
module_eval <<'.,.,', 'lib/nokogiri/css/parser.y', 184
|
644
|
+
def _reduce_48( val, _values, result )
|
625
645
|
result = Node.new(:ID, val)
|
626
646
|
result
|
627
647
|
end
|
628
648
|
.,.,
|
629
649
|
|
630
|
-
module_eval <<'.,.,', 'lib/nokogiri/css/parser.y',
|
631
|
-
def
|
650
|
+
module_eval <<'.,.,', 'lib/nokogiri/css/parser.y', 187
|
651
|
+
def _reduce_49( val, _values, result )
|
632
652
|
result = [val.first, val[2]]
|
633
653
|
result
|
634
654
|
end
|
635
655
|
.,.,
|
636
656
|
|
637
|
-
module_eval <<'.,.,', 'lib/nokogiri/css/parser.y',
|
638
|
-
def
|
657
|
+
module_eval <<'.,.,', 'lib/nokogiri/css/parser.y', 188
|
658
|
+
def _reduce_50( val, _values, result )
|
639
659
|
result = [val.first, val[2]]
|
640
660
|
result
|
641
661
|
end
|
642
662
|
.,.,
|
643
663
|
|
644
|
-
# reduce 49 omitted
|
645
|
-
|
646
|
-
# reduce 50 omitted
|
647
|
-
|
648
664
|
# reduce 51 omitted
|
649
665
|
|
650
666
|
# reduce 52 omitted
|
@@ -657,18 +673,22 @@ module_eval <<'.,.,', 'lib/nokogiri/css/parser.y', 186
|
|
657
673
|
|
658
674
|
# reduce 56 omitted
|
659
675
|
|
660
|
-
|
661
|
-
|
676
|
+
# reduce 57 omitted
|
677
|
+
|
678
|
+
# reduce 58 omitted
|
679
|
+
|
680
|
+
module_eval <<'.,.,', 'lib/nokogiri/css/parser.y', 204
|
681
|
+
def _reduce_59( val, _values, result )
|
662
682
|
result = Node.new(:NOT, [val[2]])
|
663
683
|
result
|
664
684
|
end
|
665
685
|
.,.,
|
666
686
|
|
667
|
-
# reduce
|
687
|
+
# reduce 60 omitted
|
668
688
|
|
669
|
-
# reduce
|
689
|
+
# reduce 61 omitted
|
670
690
|
|
671
|
-
# reduce
|
691
|
+
# reduce 62 omitted
|
672
692
|
|
673
693
|
def _reduce_none( val, _values, result )
|
674
694
|
result
|